$(function() {
    
    if (typeof(Storage) !== "undefined")
    {

        if (sessionStorage.check_get_info_setting_done != 1) {
            $.post(localStorage.domain_app+"/webservice/getUserById.php", {
                user_id: localStorage.userID,
                email: localStorage.email
            }, function(res) {
                sessionStorage.check_get_info_setting_done = 1;

                if ($('input[name="fiance_firstname"]')[0]) {
                    $('input[name="fiance_firstname"]').val(res.fiance_fn);
                }
                if ($('input[name="fiance_lastname"]')[0]) {
                    $('input[name="fiance_lastname"]').val(res.fiance_ln);
                }
                if ($('input[name="fiance_date"]')[0]) {
                    $('input[name="fiance_date"]').val(res.fiance_date);
                }
            }, "json");
        }
    }


});